package org.example.service.impl;

import org.example.domain.SysDictType;
import org.example.mapper.SysDictTypeMapper;
import org.example.service.SysDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysDictTypeServiceImpl implements SysDictTypeService {

    @Autowired
    private SysDictTypeMapper sysDictTypeMapper;


    @Override
    public List<SysDictType> selectList(SysDictType sysDictType) {
        List<SysDictType> list = sysDictTypeMapper.selectList(sysDictType);
        return list;
    }

    @Override
    public int add(SysDictType sysDictType) {
        return sysDictTypeMapper.add(sysDictType);
    }


    @Override
    public int update(SysDictType sysDictType) {
        return sysDictTypeMapper.update(sysDictType);
    }

    @Override
    public boolean delete(Integer dictId) {
        return sysDictTypeMapper.delete(dictId);
    }

    @Override
    public List<SysDictType> list() {
        return sysDictTypeMapper.list();
    }

    @Override
    public List<SysDictType> selectAll(SysDictType sysDictType) {
        return sysDictTypeMapper.selectAll(sysDictType);
    }

    @Override
    public List<SysDictType> selectTypeAll() {
        return sysDictTypeMapper.selectTypeAll();
    }

    @Override
    public List<SysDictType> selectTypeById(Integer dictId) {
        return sysDictTypeMapper.selectTypeById(dictId);
    }

    @Override
    public List<SysDictType> selectTypeByType(String dictType) {
        return sysDictTypeMapper.selectTypeByType(dictType);
    }

    @Override
    public boolean deleteAll(List<Long> id) {
        return sysDictTypeMapper.deleteAll(id);
    }

    @Override
    public void insertBach(List<SysDictType> cacheDataList) {
         sysDictTypeMapper.insertBach(cacheDataList);
    }


}
